import { ComponentInternalInstance, getCurrentInstance } from 'vue'
export default function useInstance() {
    // 全局变量
    const { appContext, proxy } = getCurrentInstance() as ComponentInternalInstance
    const global = appContext.config.globalProperties
    return {
        proxy,
        global
    }
}